home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Software Contest 3
/
FM Towns Software Contest 3.iso
/
exp
/
video_t
/
no1
/
c_sorse
/
cls.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-07
|
3KB
|
139 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int Dialog_cls ;
extern int Message_cls ;
extern int _001Message_cls ;
extern int DButton_cls1 ;
extern int cls_on() ;
extern int _001DButton_cls1 ;
extern int cls_off() ;
extern int Message_con ;
extern int _001Message_coff ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataCLS = { "MmiInit", 7, 0 } ;
/* Dialog_cls */
static MMIPACKET d001 = { &Dialog_cls,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
0
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
79, 64, 313, 197, 0, 7, 0,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* Message_cls */
static MMIPACKET d002 = { &Message_cls,
&Dialog_cls,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d002d = { MS_CENTERL40 | MS_DSPONLYL40,
85, 72, 305, 95, 0,15,12,
MS_NONEL40,
"画面消去",
2, 16, 16,
MS_NONEL40,
10, 0
} ;
/* _001Message_cls */
static MMIPACKET d003 = { &_001Message_cls,
&Dialog_cls,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d003d = { MS_CENTERL40 | MS_DSPONLYL40,
87, 101, 302, 124, 0,15, 0,
MS_NONEL40,
"画面を消去するコマンドです",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* DButton_cls1 */
static MMIPACKET d004 = { &DButton_cls1,
&Dialog_cls,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d004d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
103, 152, 182, 177, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
cls_on,
0x0000
} ;
/* _001DButton_cls1 */
static MMIPACKET d005 = { &_001DButton_cls1,
&Dialog_cls,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d005d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
211, 152, 290, 177, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
cls_off,
0x0000
} ;
/* Message_con */
static MMIPACKET d006 = { &Message_con,
&Dialog_cls,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d006d = { MS_CENTERL40 | MS_DSPONLYL40,
104, 153, 181, 176, 0,15,15,
MS_NONEL40,
"確定",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* _001Message_coff */
static MMIPACKET d007 = { &_001Message_coff,
&Dialog_cls,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d007d = { MS_CENTERL40 | MS_DSPONLYL40,
212, 153, 289, 176, 0,15,15,
MS_NONEL40,
"取消",
2, 16, 16,
MS_NONEL40,
16, 0
} ;